soup2 0.2.1

Soup2 crate for Rust
// This file was generated by gir (https://github.com/gtk-rs/gir)
// from ../gir-files
// DO NOT EDIT

use crate::Session;
use glib::object::Cast;
use glib::translate::*;
use std::fmt;

glib::wrapper! {
    #[doc(alias = "SoupSessionSync")]
    pub struct SessionSync(Object<ffi::SoupSessionSync, ffi::SoupSessionSyncClass>) @extends Session;

    match fn {
        type_ => || ffi::soup_session_sync_get_type(),
    }
}

impl SessionSync {
    #[doc(alias = "soup_session_sync_new")]
    pub fn new() -> SessionSync {
        crate::assert_initialized_main_thread!();
        unsafe {
            Session::from_glib_full(ffi::soup_session_sync_new()).unsafe_cast()
        }
    }

    //#[doc(alias = "soup_session_sync_new_with_options")]
    //#[doc(alias = "new_with_options")]
    //pub fn with_options(optname1: &str, : /*Unknown conversion*//*Unimplemented*/Fundamental: VarArgs) -> SessionSync {
    //    unsafe { TODO: call ffi:soup_session_sync_new_with_options() }
    //}
}

impl Default for SessionSync {
                     fn default() -> Self {
                         Self::new()
                     }
                 }

pub const NONE_SESSION_SYNC: Option<&SessionSync> = None;

impl fmt::Display for SessionSync {
    fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
        f.write_str("SessionSync")
    }
}