pub struct OfficeConvertLoadBalancer { /* private fields */ }
Expand description
Round robbin load balancer, will pass convert jobs around to the next available client, connections will wait until there is an available client
Implementations§
Source§impl OfficeConvertLoadBalancer
impl OfficeConvertLoadBalancer
Sourcepub fn new<I>(clients: I) -> Selfwhere
I: IntoIterator<Item = OfficeConvertClient>,
pub fn new<I>(clients: I) -> Selfwhere
I: IntoIterator<Item = OfficeConvertClient>,
Creates a load balancer from the provided collection of clients
§Arguments
clients
- The clients to load balance amongst
Sourcepub fn new_with_timing<I>(clients: I, timing: LoadBalancerConfig) -> Selfwhere
I: IntoIterator<Item = OfficeConvertClient>,
pub fn new_with_timing<I>(clients: I, timing: LoadBalancerConfig) -> Selfwhere
I: IntoIterator<Item = OfficeConvertClient>,
Creates a load balancer from the provided collection of clients with timing configuration
§Arguments
clients
- The clients to load balance amongsttiming
- Timing configuration
pub async fn convert(&self, file: Bytes) -> Result<Bytes, RequestError>
Auto Trait Implementations§
impl !Freeze for OfficeConvertLoadBalancer
impl !RefUnwindSafe for OfficeConvertLoadBalancer
impl Send for OfficeConvertLoadBalancer
impl Sync for OfficeConvertLoadBalancer
impl Unpin for OfficeConvertLoadBalancer
impl !UnwindSafe for OfficeConvertLoadBalancer
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