pub enum DaemonApiRequest {
Show 34 variants
Version {},
AranyaLocalAddr {},
GetKeyBundle {},
GetDeviceId {},
AddSyncPeer {
addr: Addr,
team: TeamId,
config: SyncPeerConfig,
},
SyncNow {
addr: Addr,
team: TeamId,
cfg: Option<SyncPeerConfig>,
},
RemoveSyncPeer {
addr: Addr,
team: TeamId,
},
AddTeam {
team: TeamId,
cfg: TeamConfig,
},
RemoveTeam {
team: TeamId,
},
CreateTeam {
cfg: TeamConfig,
},
CloseTeam {
team: TeamId,
},
EncryptPskSeedForPeer {
team: TeamId,
peer_enc_pk: EncryptionPublicKey<CS>,
},
AddDeviceToTeam {
team: TeamId,
keys: KeyBundle,
},
RemoveDeviceFromTeam {
team: TeamId,
device: DeviceId,
},
AssignRole {
team: TeamId,
device: DeviceId,
role: Role,
},
RevokeRole {
team: TeamId,
device: DeviceId,
role: Role,
},
AssignAqcNetIdentifier {
team: TeamId,
device: DeviceId,
name: NetIdentifier,
},
RemoveAqcNetIdentifier {
team: TeamId,
device: DeviceId,
name: NetIdentifier,
},
CreateLabel {
team: TeamId,
name: Text,
},
DeleteLabel {
team: TeamId,
label_id: LabelId,
},
AssignLabel {
team: TeamId,
device: DeviceId,
label_id: LabelId,
op: ChanOp,
},
RevokeLabel {
team: TeamId,
device: DeviceId,
label_id: LabelId,
},
CreateAqcBidiChannel {
team: TeamId,
peer: NetIdentifier,
label_id: LabelId,
},
CreateAqcUniChannel {
team: TeamId,
peer: NetIdentifier,
label_id: LabelId,
},
DeleteAqcBidiChannel {
chan: AqcBidiChannelId,
},
DeleteAqcUniChannel {
chan: AqcUniChannelId,
},
ReceiveAqcCtrl {
team: TeamId,
ctrl: AqcCtrl,
},
QueryDevicesOnTeam {
team: TeamId,
},
QueryDeviceRole {
team: TeamId,
device: DeviceId,
},
QueryDeviceKeybundle {
team: TeamId,
device: DeviceId,
},
QueryDeviceLabelAssignments {
team: TeamId,
device: DeviceId,
},
QueryAqcNetIdentifier {
team: TeamId,
device: DeviceId,
},
QueryLabels {
team: TeamId,
},
QueryLabelExists {
team: TeamId,
label: LabelId,
},
}Expand description
The request sent over the wire from the client to the server.
Variants§
Version
AranyaLocalAddr
GetKeyBundle
GetDeviceId
AddSyncPeer
SyncNow
RemoveSyncPeer
AddTeam
RemoveTeam
CreateTeam
Fields
§
cfg: TeamConfigCloseTeam
EncryptPskSeedForPeer
AddDeviceToTeam
RemoveDeviceFromTeam
AssignRole
RevokeRole
AssignAqcNetIdentifier
RemoveAqcNetIdentifier
CreateLabel
DeleteLabel
AssignLabel
RevokeLabel
CreateAqcBidiChannel
CreateAqcUniChannel
DeleteAqcBidiChannel
Fields
§
chan: AqcBidiChannelIdDeleteAqcUniChannel
Fields
§
chan: AqcUniChannelIdReceiveAqcCtrl
QueryDevicesOnTeam
QueryDeviceRole
QueryDeviceKeybundle
QueryDeviceLabelAssignments
QueryAqcNetIdentifier
QueryLabels
QueryLabelExists
Trait Implementations§
Source§impl Debug for DaemonApiRequest
impl Debug for DaemonApiRequest
Source§impl<'de> Deserialize<'de> for DaemonApiRequest
impl<'de> Deserialize<'de> for DaemonApiRequest
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl RequestName for DaemonApiRequest
impl RequestName for DaemonApiRequest
Auto Trait Implementations§
impl !Freeze for DaemonApiRequest
impl !RefUnwindSafe for DaemonApiRequest
impl Send for DaemonApiRequest
impl !Sync for DaemonApiRequest
impl Unpin for DaemonApiRequest
impl UnwindSafe for DaemonApiRequest
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