pub async fn lock(
    object: Object,
    lock_type: &str,
    client_sender: &mut Sender<RequestMessage>
) -> Result<CommandResponse<LockResponse>, Error>
Expand description

Locks contact’s domains / specific domain

Arguments

  • object - Contact / domain
  • lock_type - Reason for locking
  • client_sender - Reference to the tokio channel into the client