Trait fefix::session::Backend[][src]

pub trait Backend: Clone {
    type Error: for<'a> FixValue<'a>;
Show 13 methods fn sender_comp_id(&self) -> &[u8];
fn target_comp_id(&self) -> &[u8];
fn on_inbound_app_message(
        &mut self,
        message: Message<'_, &[u8]>
    ) -> Result<(), Self::Error>;
fn on_outbound_message(&mut self, message: &[u8]) -> Result<(), Self::Error>;
fn on_resend_request(
        &mut self,
        range: Range<u64>
    ) -> Result<(), Self::Error>;
fn on_successful_handshake(&mut self) -> Result<(), Self::Error>;
fn fetch_messages(&mut self) -> Result<&[&[u8]], Self::Error>;
fn pending_message(&mut self) -> Option<&[u8]>; fn message_encoding(&self) -> Option<&[u8]> { ... }
fn set_sender_and_target<'a>(&'a self, msg: &mut impl FvWrite<'a, u32>) { ... }
fn environment(&self) -> Environment { ... }
fn on_heartbeat_is_due(&mut self) -> Result<(), Self::Error> { ... }
fn on_inbound_message(
        &mut self,
        message: Message<'_, &[u8]>,
        is_app: bool
    ) -> Result<(), Self::Error> { ... }
}
Expand description

The owner of a [FixConnection]. It can react to events, store incoming messages, send messages, etc..

Associated Types

The type of errors that can arise during a [FixConnection].

Required methods

Callback for processing incoming FIX application messages.

Callback for post-processing outbound FIX messages.

Callback for processing ResendRequest messages.

Callback for additional logic to execute after a valid [FixConnection] is established with the counterparty.

Provided methods

Callback for processing incoming FIX messages.

Implementors