pub enum Message {
Show 20 variants
Init(Init),
Run(Run),
DiscardAll,
PullAll,
AckFailure,
Reset,
Record(Record),
Success(Success),
Failure(Failure),
Ignored,
Hello(Hello),
Goodbye,
RunWithMetadata(RunWithMetadata),
Begin(Begin),
Commit,
Rollback,
Discard(Discard),
Pull(Pull),
Route(Route),
RouteWithMetadata(RouteWithMetadata),
}
Variants§
Init(Init)
Run(Run)
DiscardAll
PullAll
AckFailure
Reset
Record(Record)
Success(Success)
Failure(Failure)
Ignored
Hello(Hello)
Goodbye
RunWithMetadata(RunWithMetadata)
Begin(Begin)
Commit
Rollback
Discard(Discard)
Pull(Pull)
Route(Route)
RouteWithMetadata(RouteWithMetadata)
Implementations§
Source§impl Message
impl Message
pub async fn from_stream( stream: impl AsyncRead + Unpin, ) -> DeserializeResult<Message>
pub fn into_chunks(self) -> SerializeResult<Vec<Bytes>>
Trait Implementations§
Source§impl TryFrom<Message> for Begin
impl TryFrom<Message> for Begin
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(message: Message) -> ConversionResult<Self>
fn try_from(message: Message) -> ConversionResult<Self>
Performs the conversion.
Source§impl TryFrom<Message> for Discard
impl TryFrom<Message> for Discard
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(message: Message) -> ConversionResult<Self>
fn try_from(message: Message) -> ConversionResult<Self>
Performs the conversion.
Source§impl TryFrom<Message> for Failure
impl TryFrom<Message> for Failure
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(message: Message) -> ConversionResult<Self>
fn try_from(message: Message) -> ConversionResult<Self>
Performs the conversion.
Source§impl TryFrom<Message> for Hello
impl TryFrom<Message> for Hello
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(message: Message) -> ConversionResult<Self>
fn try_from(message: Message) -> ConversionResult<Self>
Performs the conversion.
Source§impl TryFrom<Message> for Init
impl TryFrom<Message> for Init
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(message: Message) -> ConversionResult<Self>
fn try_from(message: Message) -> ConversionResult<Self>
Performs the conversion.
Source§impl TryFrom<Message> for Pull
impl TryFrom<Message> for Pull
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(message: Message) -> ConversionResult<Self>
fn try_from(message: Message) -> ConversionResult<Self>
Performs the conversion.
Source§impl TryFrom<Message> for Record
impl TryFrom<Message> for Record
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(message: Message) -> ConversionResult<Self>
fn try_from(message: Message) -> ConversionResult<Self>
Performs the conversion.
Source§impl TryFrom<Message> for Route
impl TryFrom<Message> for Route
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(message: Message) -> ConversionResult<Self>
fn try_from(message: Message) -> ConversionResult<Self>
Performs the conversion.
Source§impl TryFrom<Message> for RouteWithMetadata
impl TryFrom<Message> for RouteWithMetadata
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(message: Message) -> ConversionResult<Self>
fn try_from(message: Message) -> ConversionResult<Self>
Performs the conversion.
Source§impl TryFrom<Message> for Run
impl TryFrom<Message> for Run
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(message: Message) -> ConversionResult<Self>
fn try_from(message: Message) -> ConversionResult<Self>
Performs the conversion.
Source§impl TryFrom<Message> for RunWithMetadata
impl TryFrom<Message> for RunWithMetadata
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(message: Message) -> ConversionResult<Self>
fn try_from(message: Message) -> ConversionResult<Self>
Performs the conversion.
Source§impl TryFrom<Message> for Success
impl TryFrom<Message> for Success
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(message: Message) -> ConversionResult<Self>
fn try_from(message: Message) -> ConversionResult<Self>
Performs the conversion.
impl Eq for Message
impl StructuralPartialEq for Message
Auto Trait Implementations§
impl Freeze for Message
impl RefUnwindSafe for Message
impl Send for Message
impl Sync for Message
impl Unpin for Message
impl UnwindSafe for Message
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