Struct SessionIdWrapper
pub struct SessionIdWrapper {
pub sender: String,
pub target: String,
pub qualifier: String,
}Expand description
Safe wrapper around the C++ SessionId type for Rust
Fields§
§sender: StringSenderCompID field
target: StringTargetCompID field
qualifier: StringSessionQualifier field
Implementations§
§impl SessionIdWrapper
impl SessionIdWrapper
pub fn from_cpp(cpp_session_id: &SessionId) -> Self
pub fn from_cpp(cpp_session_id: &SessionId) -> Self
Create a SessionIdWrapper from a C++ SessionId reference
pub fn new(sender: String, target: String, qualifier: String) -> Self
pub fn new(sender: String, target: String, qualifier: String) -> Self
Create a new SessionIdWrapper from strings
pub fn to_cpp(&self) -> UniquePtr<SessionId>
pub fn to_cpp(&self) -> UniquePtr<SessionId>
Convert this SessionIdWrapper to a C++ SessionId (as UniquePtr)
§Returns
A UniquePtr containing the C++ SessionId object constructed from the three strings
§Example
use fixantenna_bindings::SessionIdWrapper;
let sid = SessionIdWrapper::new("SENDER".to_string(), "TARGET".to_string(), "".to_string());
let cpp_sid = sid.to_cpp();pub fn equals_cpp(&self, cpp_session_id: &SessionId) -> bool
pub fn equals_cpp(&self, cpp_session_id: &SessionId) -> bool
Check if this SessionId equals another C++ SessionId
Trait Implementations§
§impl Clone for SessionIdWrapper
impl Clone for SessionIdWrapper
§fn clone(&self) -> SessionIdWrapper
fn clone(&self) -> SessionIdWrapper
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more§impl Debug for SessionIdWrapper
impl Debug for SessionIdWrapper
§impl Display for SessionIdWrapper
impl Display for SessionIdWrapper
§impl Ord for SessionIdWrapper
impl Ord for SessionIdWrapper
§impl PartialEq for SessionIdWrapper
impl PartialEq for SessionIdWrapper
§impl PartialOrd for SessionIdWrapper
impl PartialOrd for SessionIdWrapper
impl Eq for SessionIdWrapper
Auto Trait Implementations§
impl Freeze for SessionIdWrapper
impl RefUnwindSafe for SessionIdWrapper
impl Send for SessionIdWrapper
impl Sync for SessionIdWrapper
impl Unpin for SessionIdWrapper
impl UnwindSafe for SessionIdWrapper
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more