pub enum Command {
Show 13 variants
Join {
channel_id: String,
},
SetMuted {
muted: bool,
},
SetDeafened {
deafened: bool,
},
SelectInput {
input_id: String,
},
SelectCamera {
camera_id: String,
},
Leave,
Status,
Watch {
revision: u64,
},
SetCamera {
on: bool,
},
SetScreen {
on: bool,
},
Show {
pictures: Vec<Shown>,
},
Pictures {
after: u64,
},
SetVolume {
member: String,
percent: u16,
},
}Variants§
Join
SetMuted
SetDeafened
Hear nothing of the call and be heard by no one, or stop. Deafening mutes the microphone too; undeafening puts it back as it was before, and unmuting while deafened undeafens. Everyone in the call sees it.
SelectInput
SelectCamera
Send this person’s camera in the call from another of the device’s cameras
(Snapshot::cameras). A camera that is on moves to it at once; one that is off starts
from it when it is turned on.
Leave
Status
Watch
Command::Status once it differs from the status at revision
(Snapshot::revision), or after WATCH_HOLD when nothing
changed: how an app hears who joins, leaves and talks the moment it
happens, with one question outstanding instead of a poll.
SetCamera
Turn this person’s camera on or off in the call. Turning it on asks for the camera through the normal permission prompt, once for as long as the person allows it there.
SetScreen
Share this person’s screen in the call, or stop. Starting asks through the normal permission prompt.
Show
The pictures this app shows now, each at the layer that fits where it shows it: the call receives exactly these and nothing else.
Pictures
The pictures received of what Command::Show asked for since the
cursor after (Snapshot::pictures_cursor), answered as soon as
there are any or after PICTURES_HOLD.
SetVolume
How loud this device plays one member (a person id), in
percent of as they arrive: 0 silences them,
up to MAX_VOLUME_PERCENT. Only what this device hears changes;
nobody else’s call does, so it carries no intent.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Command
impl<'de> Deserialize<'de> for Command
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Eq for Command
impl StructuralPartialEq for Command
Auto Trait Implementations§
impl Forget for Command
impl Freeze for Command
impl Move for Command
impl RefUnwindSafe for Command
impl Send for Command
impl Sync for Command
impl Unpin for Command
impl UnsafeUnpin for Command
impl UnwindSafe for Command
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more