#[cfg(doc)]
use crate::{extensions::list_status::ExtendedNames, types::*};
pub mod capabilities {
use crate::types::Capabilities;
use std::sync::mpsc;
pub fn parse(input: impl Into<Vec<u8>>) -> Capabilities {
let (mut tx, _rx) = mpsc::channel();
Capabilities::parse(input.into(), &mut tx).unwrap()
}
}
pub mod fetches {
use crate::types::Fetches;
use std::sync::mpsc;
pub fn parse(input: impl Into<Vec<u8>>) -> Fetches {
let (mut tx, _rx) = mpsc::channel();
Fetches::parse(input.into(), &mut tx).unwrap()
}
}
pub mod names {
use crate::types::Names;
use std::sync::mpsc;
pub fn parse(input: impl Into<Vec<u8>>) -> Names {
let (mut tx, _rx) = mpsc::channel();
Names::parse(input.into(), &mut tx).unwrap()
}
}
pub mod extended_names {
use crate::extensions::list_status::ExtendedNames;
use std::sync::mpsc;
pub fn parse(input: impl Into<Vec<u8>>) -> ExtendedNames {
let (mut tx, _rx) = mpsc::channel();
ExtendedNames::parse(input.into(), &mut tx).unwrap()
}
}
pub mod acl_response {
use crate::types::AclResponse;
use std::sync::mpsc;
pub fn parse(input: impl Into<Vec<u8>>) -> AclResponse {
let (mut tx, _rx) = mpsc::channel();
AclResponse::parse(input.into(), &mut tx).unwrap()
}
}
pub mod list_rights_response {
use crate::types::ListRightsResponse;
use std::sync::mpsc;
pub fn parse(input: impl Into<Vec<u8>>) -> ListRightsResponse {
let (mut tx, _rx) = mpsc::channel();
ListRightsResponse::parse(input.into(), &mut tx).unwrap()
}
}
pub mod my_rights_response {
use crate::types::MyRightsResponse;
use std::sync::mpsc;
pub fn parse(input: impl Into<Vec<u8>>) -> MyRightsResponse {
let (mut tx, _rx) = mpsc::channel();
MyRightsResponse::parse(input.into(), &mut tx).unwrap()
}
}
pub mod quota_response {
use crate::types::QuotaResponse;
use std::sync::mpsc;
pub fn parse(input: impl Into<Vec<u8>>) -> QuotaResponse {
let (mut tx, _rx) = mpsc::channel();
QuotaResponse::parse(input.into(), &mut tx).unwrap()
}
}
pub mod quota_root_response {
use crate::types::QuotaRootResponse;
use std::sync::mpsc;
pub fn parse(input: impl Into<Vec<u8>>) -> QuotaRootResponse {
let (mut tx, _rx) = mpsc::channel();
QuotaRootResponse::parse(input.into(), &mut tx).unwrap()
}
}