pub trait SendPacketValidationContext {
type V: ClientValidationContext;
// Required methods
fn get_client_validation_context(&self) -> &Self::V;
fn channel_end(
&self,
channel_end_path: &ChannelEndPath,
) -> Result<ChannelEnd, HostError>;
fn connection_end(
&self,
connection_id: &ConnectionId,
) -> Result<ConnectionEnd, HostError>;
fn get_next_sequence_send(
&self,
seq_send_path: &SeqSendPath,
) -> Result<Sequence, HostError>;
}
Expand description
Methods required in send packet validation, to be implemented by the host
Required Associated Types§
Required Methods§
Sourcefn get_client_validation_context(&self) -> &Self::V
fn get_client_validation_context(&self) -> &Self::V
Retrieve the context that implements all clients’ ValidationContext
.
Sourcefn channel_end(
&self,
channel_end_path: &ChannelEndPath,
) -> Result<ChannelEnd, HostError>
fn channel_end( &self, channel_end_path: &ChannelEndPath, ) -> Result<ChannelEnd, HostError>
Returns the ChannelEnd for the given port_id
and chan_id
.
Sourcefn connection_end(
&self,
connection_id: &ConnectionId,
) -> Result<ConnectionEnd, HostError>
fn connection_end( &self, connection_id: &ConnectionId, ) -> Result<ConnectionEnd, HostError>
Returns the ConnectionState for the given identifier connection_id
.