pub enum Event {
Show 13 variants
GreetingReceived {
greeting: Greeting<'static>,
},
CommandSent {
handle: CommandHandle,
command: Command<'static>,
},
CommandRejected {
handle: CommandHandle,
command: Command<'static>,
status: Status<'static>,
},
AuthenticateStarted {
handle: CommandHandle,
},
AuthenticateContinuationRequestReceived {
handle: CommandHandle,
continuation_request: CommandContinuationRequest<'static>,
},
AuthenticateStatusReceived {
handle: CommandHandle,
command_authenticate: CommandAuthenticate,
status: Status<'static>,
},
IdleCommandSent {
handle: CommandHandle,
},
IdleAccepted {
handle: CommandHandle,
continuation_request: CommandContinuationRequest<'static>,
},
IdleRejected {
handle: CommandHandle,
status: Status<'static>,
},
IdleDoneSent {
handle: CommandHandle,
},
DataReceived {
data: Data<'static>,
},
StatusReceived {
status: Status<'static>,
},
ContinuationRequestReceived {
continuation_request: CommandContinuationRequest<'static>,
},
}
Variants§
GreetingReceived
Greeting
received.
CommandSent
Command
sent completely.
Fields
handle: CommandHandle
Handle to the enqueued Command
.
CommandRejected
Command
rejected due to literal.
Fields
handle: CommandHandle
Handle to enqueued Command
.
AuthenticateStarted
AUTHENTICATE sent.
Fields
handle: CommandHandle
AuthenticateContinuationRequestReceived
Server requests (more) authentication data.
The client MUST call Client::set_authenticate_data
next.
Note: The client can also progress the authentication by sending AuthenticateData::Cancel
.
However, it’s up to the server to abort the authentication flow by sending a tagged status response.
Fields
handle: CommandHandle
Handle to the enqueued Command
.
continuation_request: CommandContinuationRequest<'static>
AuthenticateStatusReceived
Status
received to authenticate command.
IdleCommandSent
IDLE sent.
Fields
handle: CommandHandle
IdleAccepted
IDLE accepted by server. Entering IDLE state.
IdleRejected
IDLE rejected by server.
IdleDoneSent
DONE sent. Exiting IDLE state.
Fields
handle: CommandHandle
DataReceived
Server Data
received.
StatusReceived
Server Status
received.
ContinuationRequestReceived
Server CommandContinuationRequest
response received.
Note: The received continuation request was not part of Client
handling.
Fields
continuation_request: CommandContinuationRequest<'static>