Trait TxSpaceHandler

Source
pub trait TxSpaceHandler: TxBaseHandler {
    // Provided method
    fn recv_space_notify(
        &self,
        peer: Url,
        space: SpaceId,
        data: Bytes,
    ) -> K2Result<()> { ... }
}
Expand description

Handler for space-related events.

Provided Methods§

Source

fn recv_space_notify( &self, peer: Url, space: SpaceId, data: Bytes, ) -> K2Result<()>

The sync handler for receiving notifications sent by a remote peer in reference to a particular space. If this callback returns an error, then the connection which sent the message will be closed.

Implementors§