#[non_exhaustive]pub struct CompanionStreams {
pub vtc: bool,
pub scene: bool,
}Expand description
The companion WebSocket capabilities the server advertises, which
decide whether the companion dataTypes values "vtc" and "scene"
are recognized in a ChatStreamEnable frame.
The default advertises neither. Per draft-atwood-jmap-chat-wss-00
§Enabling Ephemeral Push (L175), "vtc" is “recognized only when the
server advertises urn:ietf:params:jmap:vtc:websocket”, and "scene"
“only when the server advertises urn:ietf:params:jmap:scene:websocket”.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.vtc: boolThe server advertises urn:ietf:params:jmap:vtc:websocket.
scene: boolThe server advertises urn:ietf:params:jmap:scene:websocket.
Trait Implementations§
Source§impl Clone for CompanionStreams
impl Clone for CompanionStreams
impl Copy for CompanionStreams
Source§impl Debug for CompanionStreams
impl Debug for CompanionStreams
Source§impl Default for CompanionStreams
impl Default for CompanionStreams
impl Eq for CompanionStreams
Source§impl PartialEq for CompanionStreams
impl PartialEq for CompanionStreams
impl StructuralPartialEq for CompanionStreams
Auto Trait Implementations§
impl Forget for CompanionStreams
impl Freeze for CompanionStreams
impl Move for CompanionStreams
impl RefUnwindSafe for CompanionStreams
impl Send for CompanionStreams
impl Sync for CompanionStreams
impl Unpin for CompanionStreams
impl UnsafeUnpin for CompanionStreams
impl UnwindSafe for CompanionStreams
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.