pub enum Message {
GetRequest {
request_id: u64,
uri: Uri,
reply_channel: u64,
},
InsertRequest {
request_id: u64,
uri: Uri,
id: AtlasId,
reply_channel: u64,
},
RemoveRequest {
request_id: u64,
uri: Uri,
reply_channel: u64,
},
LookupRequest {
request_id: u64,
pattern: String,
reply_channel: u64,
},
ResponseGet {
request_id: u64,
id: AtlasId,
found: bool,
},
ResponseRemove {
request_id: u64,
id: AtlasId,
found: bool,
},
ResponseLookup {
request_id: u64,
ids: Vec<AtlasId>,
},
ResponseOk {
request_id: u64,
},
ResponseError {
request_id: u64,
message: String,
},
}Expand description
Atlas protocol message envelope.
Variants§
GetRequest
Retrieve a single Atlas entry by URI.
Fields
InsertRequest
Insert or update an Atlas entry.
Fields
RemoveRequest
Remove an Atlas entry by URI.
Fields
LookupRequest
Lookup Atlas entries matching the supplied URI pattern.
Fields
ResponseGet
Response to a get request.
Fields
ResponseRemove
Response to a remove request.
Fields
ResponseLookup
Response to a lookup request.
Fields
ResponseOk
Empty response acknowledging a request.
ResponseError
Error response for a request.
Implementations§
Trait Implementations§
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 UnsafeUnpin 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