pub struct InternalSessionRef<Outbound> { /* private fields */ }Implementations§
Source§impl<Outbound: OutboundMessage> InternalSessionRef<Outbound>
impl<Outbound: OutboundMessage> InternalSessionRef<Outbound>
pub fn new( config: SessionConfig, application: impl Application<Outbound = Outbound>, store: impl MessageStore + 'static, ) -> Result<Self, SessionCreationError>
pub async fn register_writer( &self, writer: WriterRef, ) -> Result<(), SessionGone>
pub async fn new_fix_message_received( &self, msg: RawFixMessage, ) -> Result<(), SessionGone>
pub async fn disconnect(&self, reason: String) -> Result<(), SessionGone>
pub async fn should_reconnect(&self) -> Result<bool, SessionGone>
pub async fn await_in_schedule(&self) -> Result<ScheduleResponse, SessionGone>
Trait Implementations§
Source§impl<Outbound: Clone> Clone for InternalSessionRef<Outbound>
impl<Outbound: Clone> Clone for InternalSessionRef<Outbound>
Source§fn clone(&self) -> InternalSessionRef<Outbound>
fn clone(&self) -> InternalSessionRef<Outbound>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<M> From<InternalSessionRef<M>> for SessionHandle<M>
impl<M> From<InternalSessionRef<M>> for SessionHandle<M>
Source§fn from(session_ref: InternalSessionRef<M>) -> Self
fn from(session_ref: InternalSessionRef<M>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<Outbound> Freeze for InternalSessionRef<Outbound>
impl<Outbound> RefUnwindSafe for InternalSessionRef<Outbound>where
Sender<OutboundRequest<Outbound>>: RefUnwindSafe,
impl<Outbound> Send for InternalSessionRef<Outbound>
impl<Outbound> Sync for InternalSessionRef<Outbound>
impl<Outbound> Unpin for InternalSessionRef<Outbound>
impl<Outbound> UnsafeUnpin for InternalSessionRef<Outbound>where
Sender<OutboundRequest<Outbound>>: UnsafeUnpin,
impl<Outbound> UnwindSafe for InternalSessionRef<Outbound>where
Sender<OutboundRequest<Outbound>>: UnwindSafe,
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